package c.x.jy.dao.dao;

import c.x.jy.dao.dto.OrderBillEntityDto;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import c.x.jy.dao.entity.OrderBillEntity;

/**
 * 订单账单表
 * 
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-25 10:50:17
 */
@Mapper
public interface OrderBillDao extends BaseMapper<OrderBillEntity> {
   @Select("select * from t_order_bill where id=${id} for update ")
	OrderBillEntity selectByorderForUpdate(Long id);

    @Select("select * from t_order_bill  ${ew.customSqlSegment} order by create_date desc")
    IPage<OrderBillEntityDto> querypage(IPage<OrderBillEntity> page,@Param(Constants.WRAPPER) QueryWrapper<OrderBillEntity> query);
}

